# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-pytest-jupyter
pkgver=0.7.0
pkgrel=0
pkgdesc="A pytest plugin for testing Jupyter core libraries and extensions."
url="https://github.com/jupyter-server/pytest-jupyter"
arch="noarch"
license="BSD-3-Clause"
depends="py3-pytest py3-jupyter_core"
makedepends="py3-gpep517 py3-installer py3-hatchling"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter-server/pytest-jupyter/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/pytest-jupyter-$pkgver"
options="!check" # check seems to need a venv but also fails in a venv

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer --destdir="$pkgdir" .dist/*.whl
}

sha512sums="
a989418b15c5290f4e912d07cb49c8e03221dac849425c3247cc2f9d8cf32694800112c67be03738fa46db84f68e04de96e71a422b698761e4b2296d9b968181  py3-pytest-jupyter-0.7.0.tar.gz
"
